<?php

require_once "db_conn.php";//$conn

$usename = $POST['username'];
$sex =$POST['sex'];
$message = $POST['message'];
$imgurl = $POST['imgurl'];

$sql ="
INSERT INTO 'ahh'.'t_message'(
'username',
'sex',
'content',
'avater',
)
VALUES (
'$usename', '$sex', '$message', '$imgurl'
);
";

$result = $conn->query($sql);
header("location:index.php");
?>
        